package com.leyou.common.enums;

import lombok.Getter;

@Getter
public enum ExceptionEnum {
    PRICE_CANNOT_BE_NULL(400, "价格不能为空！"),
    CATEGORY_NOT_FOND(204,"抱歉，没有找到相应的分类信息，请重试！" ),
    DATA_TRANSFER_ERROR(500, "数据转换异常"),
    BRAND_NOT_FOUND(204,"数据库中没有对应的品牌信息" ),
    INSERT_OPERATION_FAIL(500,"品牌数据保存失败！" ),
    INVALID_FILE_TYPE(500,"文件类型校验失败！" ),
    FILE_UPLOAD_ERROR(500,"文件上传失败！" ),
    UPDATE_OPERATION_FAIL(500,"阿里云OSS服务不可用！" ),
    CATEGORY_NOT_FOUND(204,"抱歉没找到对应的分类信息！" ),
    SPEC_NOT_FOUND(204,"抱歉没找到规格参数信息！" ),
    GOODS_NOT_FOUND(204,"没有找到对应的商品信息！"),
    INVALID_PARAM_ERROR(400,"请求参数不正确！" ),
    BRAND_NOT_FOND(500,"找不到品牌！" ),
    SPECGROUP_NOT_FOUND(500,"规格参数组找不到！" ),
    SPECPARAM_NOT_FOUND(500,"找不到规格参数！" ),
    DIRECTORY_WRITER_ERROR(500,"目录路径错误！" ),
    FILE_WRITER_ERROR(500,"文件路径错误！" ),
    SEND_MESSAGE_ERROR(500,"短信发送失败，请重试！"),
    USER_CHECK_FAILD(500,"用户校验失败！"),
    SMS_SEND_ERROR(500,"短信服务内部错误！"),
    INVALID_PHONE_NUMBER(400,"手机号格式有问题！"),
    INVALID_USERNAME_PASSWORD(400,"用户名或密码有误！"),
    UNAUTHORIZED(401,"cookie失效或不正确，请重新登录!"),
    INVALID_SERVER_ID_SECRET(400,"服务的ID或密钥不存在！"),
    CARTS_NOT_FOUND(204,"找不到购物车！"),
    ORDER_NOT_FOUND(204,"找不到订单！"),
    INVALID_ORDER_STATUS(204,"订单已经支付过了！"),
    INVALID_NOTIFY_SIGN(500,"微信支付签名有误，无法解析！"),
    INVALID_NOTIFY_PARAM(400,"回调方法参数有误，无法正常解析！");


    private int status;
    private String message;

    ExceptionEnum(int status, String message) {
        this.status = status;
        this.message = message;
    }


}
